
all:
	arm-none-linux-gnueabi-gcc -c test.c -o test.o
	arm-none-linux-gnueabi-ld -Ttext=0x50000000 test.o -o test
	arm-none-linux-gnueabi-objcopy -Ielf32-littlearm -Obinary test /tftpboot/test.bin
	arm-none-linux-gnueabi-gcc -c vector.S -o vector.o
	arm-none-linux-gnueabi-ld -Ttext=0x0 vector.o -o vector
	arm-none-linux-gnueabi-objcopy -Ielf32-littlearm -Obinary vector /tftpboot/vector.bin

clean:
	rm test.o test vector.o vector /tftpboot/test.bin /tftpboot/vector.bin -rf











